//
//  YZNoteInputView.h
//  VET
//
//  Created by 刘文靖 on 2018/7/12.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <YYKit/YYTextView.h>
@class YZWorkNoteModel,YZNoteInputView;
#define itemWH  ((kScreenWidth - 72) / 3.0)
#define margin  6

@protocol YZNoteInputViewDelegate <NSObject>
@optional
/// 点击了语音
- (void)audioBtnDidClick:(YZNoteInputView *)view;
/// 点击了图片
- (void)imageBtnDidClick:(YZNoteInputView *)view;
/// 点击了短视频
- (void)videoBtnDidClick:(YZNoteInputView *)view;
/// 试听音频
- (void)audioPlayDidClick:(YZNoteInputView *)view;
/// 删除音频
- (void)audioDeleteDidClick:(YZNoteInputView *)view;
/// 预览图片
- (void)preViewImage:(NSInteger )index;
@end

@interface YZNoteInputView : UIView
@property (nonatomic, strong) YYTextView *textView;
@property (nonatomic, strong) NSString *placeHolder;
@property (nonatomic, strong) NSArray *selectedPhotos;
@property (nonatomic, strong) NSArray *selectedAssets;
@property (nonatomic, strong) NSMutableArray *notePics;
@property (strong, nonatomic) YZWorkNoteModel *note;
@property (nonatomic, weak) id<YZNoteInputViewDelegate> delegate;
- (void)showAudioViewWithAudioUrl:(NSString *)audioUrl timeInterval:(NSInteger)timeInterval;
@end
